package com.tedu.redisdemo.pojo;

import java.io.Serializable;

//若对象希望存入redis，应满足javabean的要求
public class User implements Serializable {
    private String username;
    private String password;
    public User(){

    }
    public User(String username ,String password){
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    /*@Override
    public String toString(){
        return "user{username:"+username+'\n'+",password:"+password+"}";

    }*/

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
